package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmployOrganizationAddDTO;
import org.jsola.hr.dto.EmployOrganizationUpdateDTO;
import org.jsola.hr.query.EmployOrganizationQuery;
import org.jsola.hr.vo.EmployOrganizationListVO;
import org.jsola.hr.vo.EmployOrganizationVO;

import java.util.List;

/**
 * 卫人云-用人机构
 *
 * @author zhr
 */
@Api(tags = "hr-卫人云-用人机构")
public interface IEmployOrganizationControllerAPI {

    /**
     * 新增卫人云-用人机构
     * @param employOrganizationAddDTO 卫人云-用人机构新增实体
     * @return 卫人云-用人机构展示对象
     */
    @ApiOperation(value = "新增卫人云-用人机构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationAddDTO", dataType = "EmployOrganizationAddDTO", value = "新增卫人云-用人机构", paramType = "body")
    })
    Result<EmployOrganizationVO> save(EmployOrganizationAddDTO employOrganizationAddDTO);


    /**
     * 修改卫人云-用人机构
     * @param employOrganizationUpdateDTO 卫人云-用人机构
     * @return 更新数量
     */
    @ApiOperation(value = "修改卫人云-用人机构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationUpdateDTO", dataType = "EmployOrganizationUpdateDTO", value = "修改卫人云-用人机构", paramType = "body")
    })
    Result<Integer> update(EmployOrganizationUpdateDTO employOrganizationUpdateDTO);




    /**
     * 删除单个卫人云-用人机构，彻底删除
     * @param employOrganizationId 卫人云-用人机构id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个卫人云-用人机构，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationId", dataType = "String", value = "卫人云-用人机构id", paramType = "path")
    })
    Result<Integer> delete(String employOrganizationId);


    /**
     * 批量删除卫人云-用人机构，彻底删除
     * @param employOrganizationIds 卫人云-用人机构id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除卫人云-用人机构，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationIds", dataType = "String[]", value = "卫人云-用人机构id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] employOrganizationIds);


    /**
     * 根据卫人云-用人机构id查询卫人云-用人机构详情
     * @param employOrganizationId 卫人云-用人机构id
     * @return 卫人云-用人机构详情
     */
    @ApiOperation(value="根据卫人云-用人机构id查询卫人云-用人机构详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationId", dataType = "String", value = "卫人云-用人机构id", paramType = "path")
    })
    Result<EmployOrganizationVO> findById(String employOrganizationId);


    /**
     * 查询卫人云-用人机构
     * @param employOrganizationQuery 卫人云-用人机构查询参数
     * @return page
     */
    @ApiOperation(value="查询卫人云-用人机构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationQuery", dataType = "EmployOrganizationQuery", value = "卫人云-用人机构查询参数", paramType = "query")
    })
    Result<List<EmployOrganizationListVO>> listAll(EmployOrganizationQuery employOrganizationQuery);


     /**
     * 分页查询卫人云-用人机构
     * @param employOrganizationQuery 卫人云-用人机构查询参数
     * @return page
     */
    @ApiOperation(value="分页查询卫人云-用人机构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "employOrganizationQuery", dataType = "EmployOrganizationQuery", value = "卫人云-用人机构查询参数", paramType = "query")
    })
    Result<Page<EmployOrganizationListVO>> page(EmployOrganizationQuery employOrganizationQuery);


}

